From: Gabriel Wicke Date: Wed, 9 Jun 2004 13:43:26 +0000 (+0000) Subject: set ctype in any case for gen X-Git-Tag: 1.5.0alpha1~2971 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=712453b579928f87f30c8feb2601dce8fbd44a01;p=lhc%2Fweb%2Fwiklou.git set ctype in any case for gen --- diff --git a/includes/RawPage.php b/includes/RawPage.php index 6705b83091..3d99586128 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -23,11 +23,11 @@ class RawPage { if($gen == 'css') { $this->mGen = $gen; if($smaxage == '') $smaxage = $wgSquidMaxage; - if(empty($ctype)) $ctype = 'text/css'; + if($ctype == '') $ctype = 'text/css'; } else if ($gen == 'js') { $this->mGen = $gen; if($smaxage == '') $smaxage = $wgSquidMaxage; - if(empty($ctype)) $ctype = 'text/javascript'; + if($ctype == '') $ctype = 'text/javascript'; } else { $this->mGen = false; }